<?php
function setNotificationTitle($model,$record)
{
	if($record['SavedSearch']['notification_status'] == SavedSearch::ACTIVE)
	{
		$title = "Disable Notification";
	}else
	{
		$title = "Activate Notification";
	}
	return compact('title');
		
}
$index->setData($savedSearches, 'SavedSearch');
$index->showFields(array('title'));

$index->setAction('Search', '/searchable/saved_searches/perform/:SavedSearch.id');
$index->setAction('Delete', '/searchable/saved_searches/delete/:SavedSearch.id');
$index->setAction("Disable Notification",'/searchable/saved_searches/toggleNotification/:SavedSearch.id',array(),null,true,'setNotificationTitle');
echo $index->display();
?>